<%@ page contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<% request.setCharacterEncoding("utf-8"); %>    
<%	
	String path = "/projectv5/";
	String suffix = ".jsp";
	String member = "member/";
	String board = "board/";
	
	String action = request.getParameter("action");
	
	if (action == null) 
		action = path + "index" + suffix;
	
	else if ( action.equals("login") )
		action = path + member + action + suffix;
	else if ( action.equals("loginok") )
		action = path + member + action + suffix;	
	else if ( action.equals("join") )
		action = path + member + action + suffix;
	else if ( action.equals("joinok") )
		action = path + member + action + suffix;
	else if ( action.equals("myinfo") )
		action = path + member + action + suffix;	
	
	else if ( action.equals("list") )
		action = path + board + action + suffix;
	else if ( action.equals("write") )
		action = path + board + action + suffix;
	else if ( action.equals("writeok") )
		action = path + board + action + suffix;	
	else if ( action.equals("view") )
		action = path + board + action + suffix;
	else if ( action.equals("update") )
		action = path + board + action + suffix;
	else if ( action.equals("updateok") )
		action = path + board + action + suffix;	
	else if ( action.equals("deleteok") )
		action = path + board + action + suffix;
%>    
<!DOCTYPE html>
<html lang="ko">
	<head>
		<meta charset="utf-8">
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
		<title>JSP 프로젝트 v1</title>
		<link type="text/css" href="css/layout.css"
			rel="stylesheet" />
		<style type="text/css">
		</style>
	</head>

	<body>
		<%@ include file="./layout/header.jspf" %>
		<jsp:include page = "<%=action %>" flush="false"/>
		<%@ include file="./layout/footer.jspf" %>
	</body>
</html>




